package com.ibeeking.found.common.enums.system;


public enum SystemMaterielApplyStatusEnum {


    NOT_RECEIVED(0, "未领取"),
    RECEIVED(1,"已领取"),
    REJECTED(2, "已拒绝"),;


    private Integer code;

    private String name;

    public Integer getCode(){
        return this.code;
    }

    public String getName(){
        return this.name;
    }


    SystemMaterielApplyStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static SystemMaterielApplyStatusEnum getEnum(Integer code){
        for (SystemMaterielApplyStatusEnum enums : values()){
            if(enums.code.equals(code)){
                return enums;
            }
        }
        return null ;
    }
}
